{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">后台用户</a></li>
        <li><a href="{:url('authMember/add',array('action' => 'add'))}">添加用户</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('lottery/category')}">
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$params['keyword']|default=''}" placeholder="请输入关键字...">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('lottery/category')}">清空</a>
    </form>

    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>权限组</th>
            <th>状态</th>
            <th>备注</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        {foreach name="list" item="vo"}
        <tr>
            <td>{$vo.memberId}</td>
            <td>{$vo.username}</td>
            <td>{$vo.groupName}</td>
            <td>
                {if condition="$vo['status'] eq '1'"}
                    已启用
                {else /}
                    已禁用
                {/if}
            </td>
            <td>{$vo.remark}</td>
            <td>{$vo.createTime}</td>
            <td>
                <a href="{:url('authMember/edit',array('action'=>'edit','memberId'=>$vo['memberId']))}">编辑</a>
            </td>
        </tr>
        {/foreach}
    </table>
</div>
<script src="/static/admin/js/admin.js"></script>
</body>
</html>